﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ChangePassword.ascx.cs"
    Inherits="Controls_BackEnd_ChangePassword" %>
<%@ Import Namespace="Business" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <!-- start content-outer -->
        <div id="content-outer">
            <!-- start content -->
            <div id="content">
                <div id="page-heading">
                    <h1>
                        <%=Resources.Resource.ChangePassword %></h1>
                </div>
                <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
                    <tr>
                        <th rowspan="3" class="sized">
                            <img src="<%=Config.ApplicationUrl %>resources/images/admin/shared/side_shadowleft.jpg"
                                width="20" height="300" alt="" />
                        </th>
                        <th class="topleft">
                        </th>
                        <td id="tbl-border-top">
                            &nbsp;
                        </td>
                        <th class="topright">
                        </th>
                        <th rowspan="3" class="sized">
                            <img src="<%=Config.ApplicationUrl %>resources/images/admin/shared/side_shadowright.jpg"
                                width="20" height="300" alt="" />
                        </th>
                    </tr>
                    <tr>
                        <td id="tbl-border-left">
                        </td>
                        <td>
                            <!--  start content-table-inner -->
                            <div id="content-table-inner">
                                <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                    <tr valign="top">
                                        <td>
                                            <!-- start id-form -->
                                            <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.OldPassword%>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtOldPass" class="inp-form" TextMode="Password" MaxLength="24"
                                                            runat="server"></asp:TextBox>
                                                    </td>
                                                    <td rowspan="7" style="vertical-align: top; text-align: center; width: 140px;">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.NewPassword%>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtNewpass" class="inp-form" TextMode="Password" MaxLength="24"
                                                            runat="server"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                    </th>
                                                    <td style="color: #2E74B2; font-weight: normal; font-style: italic;">
                                                        <%=Resources.Resource.PassDescript%>                                                    
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.RePassword%>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtRepass" class="inp-form" TextMode="Password" MaxLength="24" runat="server"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th>
                                                        &nbsp;
                                                    </th>
                                                    <td valign="top">
                                                        <asp:Button ID="btnSave" OnClientClick="if(!CheckPass())return false;" class="form-submit" OnClick="AllCommand" runat="server" />
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                            </table>
                                            <!-- end id-form  -->
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="<%=Config.ApplicationUrl %>resources/images/admin/shared/blank.gif" width="695"
                                                height="1" alt="blank" />
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                </table>
                                <div class="clear">
                                </div>
                            </div>
                            <!--  end content-table-inner  -->
                        </td>
                        <td id="tbl-border-right">
                        </td>
                    </tr>
                    <tr>
                        <th class="sized bottomleft">
                        </th>
                        <td id="tbl-border-bottom">
                            &nbsp;
                        </td>
                        <th class="sized bottomright">
                        </th>
                    </tr>
                </table>
                <div class="clear">
                    &nbsp;</div>
            </div>
            <!--  end content -->
            <div class="clear">
                &nbsp;</div>
        </div>
        <!--  end content-outer -->
        <ajaxToolkit:FilteredTextBoxExtender TargetControlID="txtOldPass" FilterMode="ValidChars" FilterType="LowercaseLetters,Numbers,Custom" ValidChars="1234567890"  ID="FilteredTextBoxExtender1" runat="server">
        </ajaxToolkit:FilteredTextBoxExtender>
         <ajaxToolkit:FilteredTextBoxExtender TargetControlID="txtNewpass" FilterMode="ValidChars" FilterType="LowercaseLetters,Numbers,Custom"  ValidChars="1234567890"  ID="FilteredTextBoxExtender2" runat="server">
        </ajaxToolkit:FilteredTextBoxExtender>
         <ajaxToolkit:FilteredTextBoxExtender TargetControlID="txtRepass" FilterMode="ValidChars" FilterType="LowercaseLetters,Numbers,Custom" ValidChars="1234567890"  ID="FilteredTextBoxExtender3" runat="server">
        </ajaxToolkit:FilteredTextBoxExtender>
        <script type="text/javascript">
            reloadpage = function () {
                $('.styledselect_form_1').selectbox({ inputClass: "styledselect_form_1" });
                $('.styledselect_form_2').selectbox({ inputClass: "styledselect_form_2" });
            }
            CheckPass = function () {
                var control = $control('<%=txtOldPass.ClientID %>'); if (control.value.length < 6 || Trim(control.value).length < 6) { control.focus(); control.className = 'inp-form-error'; jAlert('<%=Resources.Resource.OldPassInvalid %>', '<%=Resources.Resource.Warning %>'); return false; } control.className = 'inp-form'; control = $control('<%=txtNewpass.ClientID %>'); if (control.value.length < 6 || Trim(control.value).length < 6) { control.focus(); control.className = 'inp-form-error'; jAlert('<%=Resources.Resource.NewPassInvalid%>', '<%=Resources.Resource.Warning %>'); return false; }var control1 = $control('<%=txtRepass.ClientID %>'); if (control1.value != control.value) { control1.focus(); control1.className = 'inp-form-error'; jAlert('<%=Resources.Resource.NewPassInvalid%>', '<%=Resources.Resource.Warning %>'); return false; } control1.className = 'inp-form'; return true;
            }
        </script>
    </ContentTemplate>
</asp:UpdatePanel>
